FROM docker.jianmuhub.com/library/redis:7.0.8
ADD script/* /usr/local/bin/
RUN apt-get update \
    && apt-get install ruby-dev -y \
    && apt-get install make -y \
    && apt-get install gcc -y \
    && gem sources --add http://gems.ruby-china.com/ \
    && gem install redis-dump -V \
    && sed -i '32d' /var/lib/gems/2.7.0/gems/redis-dump-0.4.0/lib/redis/dump.rb